package com.muyu.danmo.service.impl;


import com.muyu.danmo.domain.DanmoMountDoor;
import com.muyu.danmo.mapper.DanmoMountDoorMapper;
import com.muyu.danmo.service.IDanmoMountDoorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 装裱门头照片Service业务层处理
 *
 * @author yangle
 * @date 2024-10-21
 */
@Service
public class DanmoMountDoorServiceImpl implements IDanmoMountDoorService
{
    @Autowired
    private DanmoMountDoorMapper danmoMountDoorMapper;

    /**
     * 查询装裱门头照片
     *
     * @param id 装裱门头照片主键
     * @return 装裱门头照片
     */
    @Override
    public DanmoMountDoor selectDanmoMountDoorById(Long id)
    {
        return danmoMountDoorMapper.selectDanmoMountDoorById(id);
    }

    /**
     * 查询装裱门头照片列表
     *
     * @param danmoMountDoor 装裱门头照片
     * @return 装裱门头照片
     */
    @Override
    public List<DanmoMountDoor> selectDanmoMountDoorList(DanmoMountDoor danmoMountDoor)
    {
        return danmoMountDoorMapper.selectDanmoMountDoorList(danmoMountDoor);
    }

    /**
     * 新增装裱门头照片
     *
     * @param danmoMountDoor 装裱门头照片
     * @return 结果
     */
    @Override
    public int insertDanmoMountDoor(DanmoMountDoor danmoMountDoor)
    {
        return danmoMountDoorMapper.insertDanmoMountDoor(danmoMountDoor);
    }

    /**
     * 修改装裱门头照片
     *
     * @param danmoMountDoor 装裱门头照片
     * @return 结果
     */
    @Override
    public int updateDanmoMountDoor(DanmoMountDoor danmoMountDoor)
    {
        return danmoMountDoorMapper.updateDanmoMountDoor(danmoMountDoor);
    }

    /**
     * 批量删除装裱门头照片
     *
     * @param ids 需要删除的装裱门头照片主键
     * @return 结果
     */
    @Override
    public int deleteDanmoMountDoorByIds(Long[] ids)
    {
        return danmoMountDoorMapper.deleteDanmoMountDoorByIds(ids);
    }

    /**
     * 删除装裱门头照片信息
     *
     * @param id 装裱门头照片主键
     * @return 结果
     */
    @Override
    public int deleteDanmoMountDoorById(Long id)
    {
        return danmoMountDoorMapper.deleteDanmoMountDoorById(id);
    }
}
